home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 33
/
Volume 33 - JOGO DISK .iso
/
Games
/
santas_deed.swf
/
scripts
/
DefineSprite_367
/
frame_1
/
DoAction.as
Wrap
Text File
|
2007-01-15
|
6KB
|
211 lines
var §\x01§ = 18;
while(true)
{
if(eval("\x01") == 18)
{
set("\x01",eval("\x01") + 579);
§§push(true);
}
else if(eval("\x01") == 62)
{
set("\x01",eval("\x01") + 511);
§§push(true);
}
else if(eval("\x01") == 235)
{
set("\x01",eval("\x01") - 172);
§§push(true);
}
else
{
if(eval("\x01") == 591)
{
set("\x01",eval("\x01") - 356);
§§enumerate(§§pop() >> (§§pop() >>> (§§pop() ^ §§pop())));
break;
}
if(eval("\x01") == 748)
{
set("\x01",eval("\x01") - 551);
if(§§pop())
{
set("\x01",eval("\x01") + 733);
}
}
else if(eval("\x01") == 63)
{
set("\x01",eval("\x01") + 512);
if(§§pop())
{
set("\x01",eval("\x01") + 360);
}
}
else if(eval("\x01") == 597)
{
set("\x01",eval("\x01") - 6);
if(§§pop())
{
set("\x01",eval("\x01") - 356);
}
}
else
{
if(eval("\x01") == 197)
{
set("\x01",eval("\x01") + 733);
break;
}
if(eval("\x01") == 575)
{
set("\x01",eval("\x01") + 360);
§§push(§§pop() add §§pop());
break;
}
if(eval("\x01") == 930)
{
set("\x01",eval("\x01") - 104);
game1_txt.embedFonts = true;
game1_txt.setNewTextFormat(_global.FORMAT01);
game2_txt.embedFonts = true;
game2_txt.setNewTextFormat(_global.FORMAT01);
game3_txt.embedFonts = true;
game3_txt.setNewTextFormat(_global.FORMAT01);
game4_txt.embedFonts = true;
game4_txt.setNewTextFormat(_global.FORMAT01);
game5_txt.embedFonts = true;
game5_txt.setNewTextFormat(_global.FORMAT01);
LABELS = [game1_txt,game2_txt,game3_txt,game4_txt,game5_txt];
ZONES = [zone1_btn,zone2_btn,zone3_btn,zone4_btn,zone5_btn];
SELECTED = 1;
C = _global.GAMES.length;
i = 0;
while(i < 5)
{
if(i > C - 1)
{
LABELS[i].text = "";
ZONES[i]._visible = false;
}
else
{
LABELS[i].text = _global.GAMES[i].PLAYERNAME;
}
i++;
}
zone1_btn.onRelease = function()
{
_global.JUKEBOX.playSound1("scroll20");
if(C < 1)
{
return undefined;
}
SELECTED = 1;
icon_mc._y = -115;
selection_mc._y = 0;
};
zone2_btn.onRelease = function()
{
_global.JUKEBOX.playSound1("scroll20");
if(C < 2)
{
return undefined;
}
SELECTED = 2;
icon_mc._y = -90;
selection_mc._y = 25;
};
zone3_btn.onRelease = function()
{
_global.JUKEBOX.playSound1("scroll20");
if(C < 3)
{
return undefined;
}
SELECTED = 3;
icon_mc._y = -65;
selection_mc._y = 50;
};
zone4_btn.onRelease = function()
{
_global.JUKEBOX.playSound1("scroll20");
if(C < 4)
{
return undefined;
}
SELECTED = 4;
icon_mc._y = -40;
selection_mc._y = 75;
};
zone5_btn.onRelease = function()
{
_global.JUKEBOX.playSound1("scroll20");
if(C < 5)
{
return undefined;
}
SELECTED = 5;
icon_mc._y = -15;
selection_mc._y = 100;
};
ok_btn.onRelease = function()
{
_global.JUKEBOX.playSound1("scroll20");
_global.CGAMEIND = SELECTED - 1;
_global.CGAME = _global.GAMES[_global.CGAMEIND];
_parent.gotoPlay();
};
cancel_btn.onRelease = function()
{
_global.JUKEBOX.playSound1("scroll20");
_parent.gotoMenu();
};
break;
}
if(eval("\x01") == 385)
{
set("\x01",eval("\x01") + 363);
§§push(true);
}
else if(eval("\x01") == 935)
{
set("\x01",eval("\x01") - 191);
§§push(true);
}
else
{
if(eval("\x01") == 161)
{
set("\x01",eval("\x01") + 224);
break;
}
if(eval("\x01") == 744)
{
set("\x01",eval("\x01") - 638);
if(§§pop())
{
set("\x01",eval("\x01") - 44);
}
}
else
{
if(eval("\x01") != 573)
{
if(eval("\x01") == 106)
{
set("\x01",eval("\x01") - 44);
nextFrame();
break;
}
break;
}
set("\x01",eval("\x01") - 412);
if(§§pop())
{
set("\x01",eval("\x01") + 224);
}
}
}
}
}
}